import { RouteRecordRaw } from "vue-router";
import CommentPost from "@/components/CommentPost.vue";
import UserLoginView from "@/views/user/UserLoginView.vue";
import UserRegisterView from "@/views/user/UserRegisterView.vue";
import PostAddView from "@/views/Post/PostAddView.vue";
import UserCenterView from "@/views/user/UserCenterView.vue";
import CommentPostView from "@/views/Post/CommentPostView.vue";

export const routes: Array<RouteRecordRaw> = [
  {
    path: "/",
    name: "动态页",
    component: CommentPostView,
  },
  {
    path: "/post/add",
    name: "发表动态",
    component: UserCenterView,
  },
  {
    path: "/user/login",
    name: "登录",
    component: UserLoginView,
    meta: {
      hideInMenu: true,
    },
  },
  {
    path: "/user/register",
    name: "注册",
    component: UserRegisterView,
    meta: {
      hideInMenu: true,
    },
  },
];
